package com.ele.service;

import com.ele.pojo.Food;
import com.ele.pojo.PageResult;
import com.ele.pojo.vo.FoodVO;

import java.sql.SQLException;
import java.util.List;

public interface FoodService {
    /**
     * 根据菜品分类id和店家id来查询菜品以及分页
     * @param currentPage
     * @param pageSize
     * @param categoryId
     * @param shopId
     * @param foodName
     * @return
     * @throws Exception
     */
    PageResult<List<FoodVO>> findFood(String currentPage, String pageSize, String categoryId, String shopId, String foodName);

    /**
     * 添加菜品
     * @param food
     * @return
     */
    Integer addFood(Food food);

    /**
     * 修改菜品
     * @param food
     * @return
     */
    Integer updateFood(Food food);

    /**
     * 根据菜品id删除
     * @param foodId
     * @return
     */
    Integer deleteFood(String foodId);
}
